<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/inc.css" />
	<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/ico.css" />
	<!--[if IE 7]>
		<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/ico-ie7.css">
	<![endif]-->
	<script type='text/javascript' src='http://localhost/obj/movier/HDPHP/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>

	<script type="text/javascript" src='http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/js/extend.js'></script>
	<script type="text/javascript" src='http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Article/js/js.js'></script>

<title>文章列表</title>
<body class="bgwhite-1">
	<div class="Menu">
		<a href="<?php echo U('index');?>" class="act"><i class="icon-comment mr3 gray"></i>文章管理</a>
		<a href="<?php echo U('add');?>"><i class="icon-plus mr3 gray"></i>添加文章</a>
		<a href="<?php echo U('updateCache');?>" class="ajax" actUrl="<?php echo U('index');?>"><i class="icon-refresh mr3 gray"></i>更新缓存</a>
	</div>
	<div class="p10">
		<table class="table">
			<tr class=' white fm f14'>
				<th class="pct5 tsblack tc">Aid</th>
				<th class="pct5 tsblack">图</th>
				<th class="pct40 tsblack">文章标题</th>
				<th class="pcd10 tsblack">类别</th>
				<th class="pct10 tsblack">属性</th>
				<th class="pct30 tsblack tc">操作</th>
			</tr>
			<?php $hd["list"]["a"]["total"]=0;if(isset($article) && !empty($article)):$_id_a=0;$_index_a=0;$lasta=min(1000,count($article));
$hd["list"]["a"]["first"]=true;
$hd["list"]["a"]["last"]=false;
$_total_a=ceil($lasta/1);$hd["list"]["a"]["total"]=$_total_a;
$_data_a = array_slice($article,0,$lasta);
if(count($_data_a)==0):echo "";
else:
foreach($_data_a as $key=>$a):
if(($_id_a)%1==0):$_id_a++;else:$_id_a++;continue;endif;
$hd["list"]["a"]["index"]=++$_index_a;
if($_index_a>=$_total_a):$hd["list"]["a"]["last"]=true;endif;?>

				<tr>
					<td class='tc'><span class="b gray2"><?php echo $a['aid'];?></span></td>
					<td class='tc'>
						<?php if($a['medium']){?>
							<div class="showPic">
								<img height="30" src="http://localhost/obj/movier/<?php echo $a['medium'];?>" />
							</div>
						<?php  }else{ ?>
							<span class="gray2">Noimg</span>
						<?php }?>
					</td>
					<td class='tl'>
						<?php echo $a['title'];?>
						<?php if($a['big']){?>
							<?php if(!$a['slide']){?>
							<span class="bgblue2 white p2 pl5 pr5 rad5">活动轮播</span>
							<?php  }else{ ?>
							<span class="bgmaroon2 white p2 pl5 pr5 rad5">首页轮播</span>
							<?php }?>
						<?php }?>
					</td>
					<td class='tc'><?php echo $a['cname'];?></td>
					<td class='tc'><?php echo $a['flag'];?></td>
					
					<td class='tc'>
						<a href="<?php echo U('edit?aid=');?><?php echo $a['aid'];?>" class="a bgwhite green bdd p5 mr5"><i class="icon-edit icon-border mr3 icon-large "></i>改</a>
						<a href="<?php echo U('del?aid=');?><?php echo $a['aid'];?>" onclick='return del();' class="a bgwhite dels red bdd p5 mr5"><i class="icon-trash icon-border mr3 icon-large "></i>删</a>
						<a href="<?php echo U('Comment/index?aid=');?><?php echo $a['aid'];?>" onclick='return del();' class="a bgwhite teal bdd p5 mr5"><i class="icon-comment-alt icon-border mr3 icon-large "></i><b class="fm"><?php echo $a['comments'];?></b> 评</a>
					</td>
				</tr>
			<?php $hd["list"]["a"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
		</table>
		<div class="page mt10"><?php echo $page;?></div>
	</div>
</body>
</html>